﻿using System;
using System.ServiceModel;
using XchangeStreamer.Utilities;

namespace XchangeStreamer.Server.Core
{
    [ServiceBehavior(InstanceContextMode = InstanceContextMode.Single, ConcurrencyMode = ConcurrencyMode.Multiple, Namespace = Settings.Namespace)]
    internal sealed partial class Engine : IDisposable
    {
        #region IDisposable Members

        public void Dispose()
        {
            this.sync.Dispose();
            this.sync = null;
            this.onNotifyCompleted = null;
            this.subscribers.Clear();
            this.subscribers = null;
        }

        #endregion
    }
}
